<%-- 
    Document   : right_content
    Created on : Nov 4, 2012, 1:35:00 PM
    Author     : BarcelonaFC
--%>

<%@page import="dto.DTO_KhachHang"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/struts-tags" prefix="s" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
       <div id="right-content">
                    <div id="list_product">
                        <div id="list_products_content">
                            <dl>
    				<dt><a style="cursor:pointer;">Thời trang nam</a></dt>
   				<dd>
       				    <ul>
           				<li><a href="SanPham.action?idLoai=0&gt=1">Áo thun</a></li>
   		                        <li><a href="SanPham.action?idLoai=1&gt=1">Áo sơ mi</a></li>
                                        <li><a href="SanPham.action?idLoai=2&gt=1">Áo khoác</a></li>
   					<li><a href="SanPham.action?idLoai=3&gt=1">Quần Jean</a></li>
   					<li><a href="SanPham.action?idLoai=4&gt=1">Quần Kaki</a></li>
      				   </ul>
   				</dd>
    				<dt ><a style="cursor:pointer;">Thời trang nữ</a></dt>
   				<dd>
       				    <ul>
         				<li><a href="SanPham.action?idLoai=0&gt=0">Áo thun</a></li>
        				<li><a href="SanPham.action?idLoai=1&gt=0">Áo sơ mi</a></li>
                                        <li><a href="SanPham.action?idLoai=2&gt=0">Áo khoác</a></li>
        				<li><a href="SanPham.action?idLoai=3&gt=0">Quần Jean</a></li>
                                        <li><a href="SanPham.action?idLoai=5&gt=0">Váy</a></li>

       				    </ul>
   				</dd>
                               <dt><a style="cursor:pointer;">Khuyến mãi</a></dt>
    			       <dd>
      				    <ul>
           				<li><a href="SanPham.action?idChude=0">HOT</a></li>
           				<li><a href="SanPham.action?idChude=1">New</a></li>
        				<li><a href="SanPham.action?idChude=2">SALE</a></li>
        			   </ul>
    			      </dd>
			</dl>
                      </div>
                    </div>
                        <%
                            String tendangnhap = "Khách";
                            if(session.getAttribute("KhachHang") != null){
                                 DTO_KhachHang dtoKH = (DTO_KhachHang)session.getAttribute("KhachHang");
                                 tendangnhap = dtoKH.getTenDangNhap();
                            }
                        %>
                    <div id="module2">
                    	<div class="title">
                        	<p>Tài khoản</p>
                        </div>
                        <p style="margin-top:10px;color: red;font-size: 15px;">Xin chào , <font style="color:blue;font-size: 20px;"><%=tendangnhap%> </font> </p>
                        <%
                            if(session.getAttribute("KhachHang") == null){

                        %>
                          <a href="dangky.jsp">Đăng ký</a><br/>
                          <a href="dangnhap.jsp">Đăng nhập</a><br/>
                          <a href="quenmatkhau.jsp">Quên mật khẩu ?</a>
                        <%} else {%>
                           <a href="doimatkhau.jsp">Đổi mật khẩu</a><br/>
                           <a href="thongtinkhachhang.jsp">Đổi thông tin</a><br/>
                           <a href="DangXuat.action">Đăng xuất</a>
                           <%}%>
                    </div>
                    <div id="module2">
                    	<div class="title">
                        	<p>Giỏ hàng</p>
                        </div>
                        <%
                            if(session.getAttribute("TongSP") != null){
                        %>
                        <p style="margin: 15px 0 0 0;font-size: 20px;color:red;font-weight: bold;"><%= session.getAttribute("TongSP") %> sản phẩm</p>
                        <a href="giohang.jsp">Xem giỏ</a>
                        <%}%>
                       
                        <p></p>
                    </div>
                </div>
      
    </body>
</html>
